<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>

    <meta name="keywords" content="基金,网上交易,基金网上交易平台,金牛基金网上交易平台" />
    <meta name="description" content="金牛基金网上交易平台，我们为您提供便捷、安全的基金网上交易服务。买基金，找最懂的！" /><title>基金交易平台登录 - 金牛基金交易网</title>
    <script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/../jquery/jquery.min.js?version=20201230002"></script>
    <link href="${pageContext.request.contextPath}/image/logo.png" rel="Shortcut Icon">

    <script type="text/javascript" src="https://captcha.guard.qcloud.com/template/TCapIframeApi.js?appid=1251731163&clientype=2&lang=2052&asig=9WkkASaM-aCuOqVi__SgwxrWKtTxcD_iOcOhUNNq_UAFoPuLRHRoLuLjwgwKZblB2gNqxMEJ4u3LqkkoTb96jRVe11lS3yDJ"></script>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/loginHome.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/keyboard.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/guangbozhan.css" />
    <style type="text/css">
        /*topMenu1*/
        .topMenu1 {height:45px;padding:20px 0;background:#fff;}
        .topMenu1_con {width:1000px;margin:0 auto;}
        .topMenu1 h2 {float:left; background:url(https://static.ehowbuy.com/tstatic/images/web/logo1.jpg) no-repeat;cursor:pointer;width:310px;height:45px;line-height:200px;overflow:hidden;}
        .topMenu1 ul {float:right;margin-top:10px;}
        .topMenu1 ul li {float:left;margin-left:15px;}
        .topMenu1 ul li a {font:16px "微软雅黑", "宋体";color:#333;display:inline-block;height: 40px;line-height: 40px;padding:0 10px;}
        .topMenu1 ul li a:hover {color: #333;background: #fdd9b1;text-decoration: none;}
        .topMenu1 ul li img {position:absolute;margin:5px 0 0 -6px;}
        .topMenu1 ul li.current a {border-bottom: 3px solid #f80;height: 37px;line-height: 37px;color: #f80;}
        .topMenu1 ul li.current a:hover {background: none;color: #f80;}
    </style>
    <base target="_blank" />
</head>
<body>
<div class="topGuide">
    <div class="topGuide_con">
        <ul>
            <li><a href="http://www.howbuy.com" target="_self">返回网站首页</a>　|</li>
            <li class="line">客服热线：<strong class="cRed">400-700-9665</strong> | 【工作日9:00-20:00；非工作日9:00-18:00】　|</li>
            <li><a href="">帮助中心</a></li>
        </ul>
    </div>
</div>
<div class="topMenu1">
    <div class="topMenu1_con">
        <h2 onclick="javascript:window.location.href='https://www.ehowbuy.com';" title="基金交易" style="">基金交易</h2>
        <ul>
            <li class="current"><a href="" target="_self">首页</a></li>
            <li><a href="">基金超市</a></li>
            <li><a href="">储蓄罐理财</a></li>
            <li><a href="">信息披露</a></li>
            <li><a href="">安全保障</a></li>
        </ul>
    </div>
</div>
<div class="bn-alp">
    <ul class="box">
        <li class="on" style="background-color:#fadaa9;">
            <img src="../imager/banner_1.jpg" class="bg" />
        </li>
        <li style="background-color:#061a33;">
            <img src="../imager/banner_2.jpg" class="bg" />
        </li>
        <li style="background-color:#130c1e;">
            <img src="../imager/banner_3.jpg" class="bg" />
        </li>
    </ul>
    <div class="i"></div>
</div>
<div class="banner">
    <div class="con">
        <div class="loginBox" id="divLogin">
            <div class="login_part" id="divUnLogin">
                <form id="loginForm" action="/Anonymous/clientLogin" onsubmit="return loginSubmit('.error');" method="post" target="_self">

                    <input type="hidden" name="loginErr" value="0" />
                    <div class="error" style="display:none"></div>
                    <h5>交易平台登录</h5>
                    <div class="Credentials">
                        <span><a href="#" target="_self" class="rt other" id="other">其他证件号登录</a>交易账号：</span>
                    </div>
                    <input id="idType" name="idType" value="0" type="hidden"/>
                    <p class="Acc">
                        <label for="idNo" class="lab">支持身份证号/已验证手机号登录</label>
                        <input id="idNo" name="cAccount"maxlength="18" value="" onblur="vrifyActive();" style="width:250px" autocomplete="off" class="it input_txt"/><a href="javascript:void(0)" target="_self" class="clear_Acc_con" tabIndex="-1"></a>
                        <input type="hidden" id="idNoToSub" name="idNo" value="">
                    </p>
                    <p class="b1">登录密码：</p>
                    <p class="pw"><input class="it" maxlength="20" type="password" name="password"  style="width: 250px" id="password" autocomplete="off" /><em onclick="jrunKeyBoard('password',this);"></em></p>
                    <p class="b2"><a href="" class="rt">忘记登录密码？</a><input name="idCookie"  type="checkbox" id="saveID" /><label for="saveID">记住账号</label></p>
                    <p><input type="submit" value="登录" class="btn" /></p>
                    <p class="b3"><a href="/Anonymous/register" target="_blank" class="mfkh">免费开户</a>|<a href="">用户激活</a>|<a href="" target="_blank">开户指南</a></p>
                    <input type="hidden" name="coopId" id="coopId" value="" />
                    <input type="hidden" name="actId" id="actId" value="" />
                    <input type="hidden" name="targeturl" id="targeturl" value="" />
                    <input type="hidden" name="encMsgJS" id="encMsgJS" value="" />

                    <input type="hidden" id="ticket" name="ticket" value="">

                </form>
            </div>
            <div class="mask2"></div>
            <div class="mask1"></div>
            <div id="TCaptcha" style="top:0px;left:0px;" ></div>
        </div>
    </div>
</div>
<div class="Feature">
    <ul>
        <li class="fea_1" style="margin-left:0;"><p>足不出户，网上完成基金买卖<Br />账户盈亏、投资记录，快速查询</p></li>
        <li class="fea_2"><p>特色储蓄罐，申购基金1折起<br />优选产品，持续推荐</p></li>
        <li class="fea_3"><p>证监会颁发销售牌照<br />上海浦东发展银行监管资金安全</p></li>
    </ul>
</div>
<div class="part_a">
    <div class="part_a_con">
        <dl>
            <dt><a href="" class="rt more" style="margin-right: 10px;">查看全部&gt;&gt;</a>16家银行</dt>
            <dd>
                <div class="bankList">
                    <a href="http://www.icbc.com.cn" title="中国工商银行" class="b1"></a>
                    <a href="http://www.ccb.com" title="中国建设银行" class="b2"></a>
                    <a href="http://www.abchina.com/cn/" title="中国农业银行" class="b3"></a>
                    <a href="http://www.bankcomm.com" title="交通银行" class="b4"></a>
                    <a href="http://www.cmbchina.com/" title="中国招商银行" class="b5"></a>
                    <a href="http://www.psbc.com/" title="中国邮政储蓄银行" class="b8"></a>
                    <a href="http://bank.pingan.com" title="平安银行" class="b9"></a>
                    <a href="http://www.spdb.com.cn" title="浦发银行" class="b10"></a>
                    <a href="http://www.bankofshanghai.com/" title="上海银行" class="b11"></a>
                    <a href="http://www.boc.cn/" title="中国银行" class="b13"></a>
                    <a href="http://www.cib.com.cn/" title="兴业银行" class="b14"></a>
                    <a href="http://www.cebbank.com/" title="光大银行" class="b15"></a>
                    <a href="http://www.cmbc.com.cn/" title="民生银行" class="b16"></a>
                </div>
            </dd>
        </dl>
        <dl style="margin:0 66px;width:260px">
            <dt><a href="" class="rt more">更多&gt;&gt;</a>67家基金公司</dt>
            <dd>
                <a href="" title="查看详情" class="CoList"></a>
            </dd>
        </dl>
        <dl style="width:318px;">
            <dt>资质证明</dt>
            <dd>
                <div class="zzzm">
                    <p>基金销售资格　监督机构　监督银行　自律组织　安全认证</p>
                    <a href="https://www.ehowbuy.com/help/sub/jjdxxk.html" title="基金销售资格" class="b1"></a>
                    <a href="http://www.csrc.gov.cn" title="中国证券监督管理委员会" class="b2"></a>
                    <a href="https://www.spdb.com.cn" title="上海浦东发展银行" class="b3"></a>
                    <a href="http://www.amac.org.cn/" title="中国证券投资基金业协会" class="b4"></a>
                    <a href="https://www.ehowbuy.com/help/sub/security.html" title="Norton SECURED" class="b5"></a>
                </div>
            </dd>
        </dl>
    </div>
</div>
<div id="guangbozhan"></div>
<div class="footer">
    <ul>
        <li class="nav"><a href="https://www.ehowbuy.com/help/sub/qtwd/qyxz.pdf">投资者权益须知</a>|<a href="https://www.ehowbuy.com/help/sub/qtwd/jjtzjysc.pdf">投资者教育手册</a>|<a href="https://www.ehowbuy.com/help/sub/contactus.html">联系我们</a>|<a href="https://www.ehowbuy.com/help/sub/safetyguidelines.html">交易安全指引</a>|<a href="https://www.ehowbuy.com/help/sub/xsryzz.html">销售人员资质</a>|<a href="https://www.ehowbuy.com/help/sub/jjdxxk.html">基金代销许可</a>|<a href="https://www.ehowbuy.com/help/sub/zjzhgs.html">资金账户公示</a>|<a href="https://www.ehowbuy.com/help/sub/index.html">帮助中心</a></li></li>
        <li>客服/投诉热线：400-700-9665 &nbsp;&nbsp;客服传真：021-68596916&nbsp;&nbsp;客服/投诉邮箱：<a href="mailto:service@howbuy.com">service@howbuy.com</a>&nbsp;&nbsp;证监会投诉电话:010－66210182、66210166</li>
        <li>办公地址：上海市浦东南路1118号鄂尔多斯国际大厦903~906室&nbsp;&nbsp;邮编：200120</li>
        <li>版权所有 金牛基金 Copyright&copy;ehowbuy.com, inc 2021. All rights reserved. <a href="https://beian.miit.gov.cn/">[沪ICP备11048127号-1]</a></li>
        <li style="color:#999;">风险提示：投资有风险。基金的过往业绩并不预示其未来表现。基金管理人管理的其他基金的业绩并不构成基金业绩表现的保证。相关数据仅供参考，不构成投资建议。投资人请详阅基金合同和基金招募说明书，并自行承担投资风险。</li>
        <li style="margin-top:10px;">
            <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010902001261" target="_blank"><img src="https://static.ehowbuy.com/tstatic/images/web/picp_bg.png" alt="" /></a>
            <a href='https://scjgj.sh.gov.cn/lz/licenseLink.do?method=licenceView&entyId=dov73ne26zbqq0isy0x2bbegxk7flutvkn' target="_blank" style="margin-left:10px"><img src="https://static.ehowbuy.com/tstatic/images/web/gongs.jpg" alt='' border=0 /></a>
        </li>
    </ul>
</div>
<%--<script type="text/javascript" src="https://ssl.howbuy.com/js/uaa/ha.js"></script>--%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/o_code.js?"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/keyboard.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jq-login-input.js"></script>
<%--<script type="text/javascript" src="js/login.js"></script>--%>
<%--轮播图--%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/banner_scroll.js"></script>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/validateRule.js?version=20201230002"></script>--%>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/plug-in-QQ.js?version=20201230002"></script>--%>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/common.js?version=20201230002"></script>--%>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/cookie.js?version=20201230002"></script>--%>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/browser-version.js?version=20201230002"></script>--%>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/jsencrypt.min.js?version=20201230002"></script>--%>
<%--<script type="text/javascript" src="https://static.ehowbuy.com/tstatic/js/web/common/hbencrypt.js?version=20201230002"></script>--%>

<script type="text/javascript">

    var actionUrl = 'https://captcha.guard.qcloud.com/template/TCapIframeApi.js?appid=1251731163&clientype=2&lang=2052&asig=9WkkASaM-aCuOqVi__SgwxrWKtTxcD_iOcOhUNNq_UAFoPuLRHRoLuLjwgwKZblB2gNqxMEJ4u3LqkkoTb96jRVe11lS3yDJ';
    //alert("actionUrl : " + actionUrl);

    if(!isEmpty(actionUrl)){
        //var capOption = {callback:cbfn, showHeader:true, type: 'popup', pos:'absolute'};
        //capInit(document.getElementById("TCaptcha"), capOption);
        //回调函数：验证码页面关闭时回调
        function cbfn(retJson) {
            if (retJson.ret == 0) {
                // 用户验证成功
                $("#ticket").val(retJson.ticket);
                //alert(retJson.ticket);
                document.getElementById("loginForm").submit();
            }
            else {
                //用户关闭验证码页面，没有验证
                $("input[type='submit']").attr("disabled",false);
                $("input[type='submit']").removeClass('dis_btn').addClass('btn');
                $("input[type='submit']").val('登录');
                capDestroy();

            }
        }
    }



    //alert("idNoToSub:" + $("#idNoToSub").val());
    /*这里是提交表单前的非空校验*/
    $("#loginForm").submit(function () {
        var json = {"idType":$("#idType").val(), "idNo":$("#idNoToSub").val(), "password": $("#password").val()};
        var encMsgJS =  HBEncrypt.rsaEncrypt(JSON.stringify(json));
        $("#encMsgJS").val(encMsgJS);


        if ('0' == $("#idType").val() && (jQuery('#idNoToSub').val().length==18 || jQuery('#idNoToSub').val().length==15) && !id_rule(jQuery('#idNoToSub').val())) {
            //身份证号
            obj.html('请输入正确的身份证号/手机号');
            obj.show();
            return false;
        }else if('0' == $("#idType").val() && jQuery('#idNoToSub').val().length==11){
            //手机号
            ereg = /^[0-9]*$/;
            if(!ereg.test(jQuery('#idNoToSub').val())){
                obj.html('请输入正确的身份证号/手机号');
                obj.show();
                return false;
            }
        }else if('0' == $("#idType").val() && jQuery('#idNoToSub').val().length!=18 && jQuery('#idNoToSub').val().length!=15 && jQuery('#idNoToSub').val().length!=11){
            obj.html('请输入正确的身份证号/手机号');
            obj.show();
            return false;
        }
        var ticket = $("#ticket").val();
        if(isEmpty(ticket)){
            var capOption = {callback:cbfn, showHeader:true, type: 'popup', pos:'absolute'};
            capInit(document.getElementById("TCaptcha"), capOption);

            setTimeout(function(){
                var a = document.getElementById('divLogin');
                var b = document.getElementById('tcaptcha_transform');

                var x = a.getClientRects()[0].x;
                var y = a.getClientRects()[0].y;

                if(!(b == null || b == 'null' || b == 'undefined')){
                    b.style.left = (x - 10)+'px';
                    b.style.top = (y - 20)+'px';
                    b.style.display = 'block';
                }

            },2000)
            return false;
        }
    })


    $(function() {
        window.IDNO = "";

        //统计代码
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-32736696-1', 'auto');
        ga('send', 'pageview');

        if("https://trade.ehowbuy.com".indexOf(window.location.host) == -1) {
            $.getScript('https://trade.ehowbuy.com/user/getuserinfo.htm', function() {
                if(typeof(userCookie) != "undefined") {
                    var isLoad = userCookie.isLoad;
                    if (typeof(isLoad) != "undefined" && isLoad == "1") {// 已登录
                        var custName = userCookie.custName;
                        var idNoSrc = userCookie.idNo;
                        var idNo = idNoSrc.replace(/\s/g,'').replace(/(\w{4})(?=\w)/g,'$1 ');
                        document.getElementById("divUnLogin").style.display = "none";
                        document.getElementById("divLogin").innerHTML = "<div class='Logged'><h5>交易平台登录</h5><div class='bar1'>您好，<strong>" + custName +
                            "</strong><a href='https://trade.ehowbuy.com/login/loginout.htm' target='_self'>退出</a></div><div class='bar2'>您正在使用的基金交易账户为：</div>" +
                            "<div class='bar3' id='div_idNo'>" + proceedIDNo(idNoSrc) + "</div><div class='bar4'><a href='https://trade.ehowbuy.com/newpc/pcfund/module/pcfund/view/index.html' target='_self' class='btn'>进入我的交易账户</a></div></div>" +
                            "<div class='mask2'></div><div class='mask1'></div>";
                    }
                }
            });
        }

        function proceedIDNo(idNo){
            if(idNo.length==18){
                var index = idNo.substring(0,3);
                var last = idNo.substring(idNo.length-4,idNo.length);
                return index+'***********'+last;
            }else{
                return idNo;
            }
        }

        //其他证件号
        $("#other").click(function(){
            $(this).parent().hide();
            $(".Credentials .other_list").show();
        });

        //登录btn
        $(".login_part .btn").hover(function(){
            $(this).addClass("btn_hover");
        },function(){
            $(this).removeClass("btn_hover");
        });


        //公告
        showAnno();

    });
    function vrifyActive(){
        if(checkCert($("#idType").val(),$("#idNo").val(),false)){
            $.ajax({
                type: "post",
                cache: false,
                dataType:"text",
                data:{idNo:$("#idNo").val(),idType:$("#idType").val()},
                url: "/common/doajaxaction.htm?method=getCustRegisterStatus",
                success: function(data){
                    if('1004'==data){
                        $(".error").html('该证件号码，已开户，请 <a href="https://trade.ehowbuy.com/account/activateacct.htm?idNo=' + $("#idNo").val() + '&idType=' + $("#idType").val() + 'class="maxJE" target="_self">激活</a>');
                        $(".error").show();
                    } else {
                        $(".error").hide();
                    }
                },
                error:function(xhr,err){
                    alert('系统正忙，请稍后再试！！');
                }
            });
        } else {
            $(".error").hide();
        }
    }

    var t=30;
    function shua(){
        t=t-1;
        var item = document.getElementById("second");
        if(item==null){
            return;
        }
        document.getElementById("second").innerHTML=t;
        if (t==0)
        {
            $(".system-notice").slideUp();
        }
    }
    window.setInterval(shua,1000);

    function publishNotice(start, end, content){

        var noticeList = window.noticeList;
        if(typeof(noticeList) != 'object'){
            noticeList =  new Array();
            window.noticeList = noticeList;
        }

        var notice = new Object();
        notice['start'] = start;
        notice['end'] = end;
        notice['content'] = content;

        noticeList.push(notice);
    }

    function getLatestNotice(){

        var nowDate = new Date().getTime();
        var noticeList = window.noticeList;

        if(typeof(noticeList) == 'object' && (noticeList instanceof Array)){
            for(var i=0; i<noticeList.length; i++){
                var notice = noticeList[i];
                var start = notice['start'];
                var end = notice['end'];

                return notice;
            }
        }
        return null;
    }

    function showAnno(){
        var showFlag = true;
        var text = "<div class='system-notice' style='display: none;'>"+
            "<div class='system-title'><span class='t'>金牛基金网上交易广播站</span><strong><em id='second'>30</em>秒后将自动关闭</strong>  <span class='system-close' title='关闭'>x</span></div>"+
            "<div class='system-main'>"+
            "<p class='content'></p>" +
            "</div>" +
            "</div>";
        if(showFlag){
            $("#guangbozhan").html(text);
        }



        //获取当前公告
        var notice = getLatestNotice();

        //显示公告
        if(notice != null && (typeof(notice) == 'object')){
            $(".system-notice .content").html(notice['content']);
            $(".system-notice").show();
        }else{
            $(".system-notice").hide();
        }

        $(".system-close").on("click",function(){
            $(this).parents(".system-notice").slideUp();
        });
    }

</script>
</body>
</html>
